package com.htudata.transctLive.pojo.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.Arrays;
@Data
public class TransctLinkVO implements Serializable {
  private static final long serialVersionUID = 7854403919336186575L;
  
  private String linkId;
  
  private int[] xy;
  
  private int[] pos;
  
  private String begin;
  
  private String end;

  private int alarm = 0;

  private Long triggerId;

  private String color = "#00FF00";


  public boolean equals(Object o) {
    if (o == this)
      return true; 
    if (!(o instanceof TransctLinkVO))
      return false; 
    TransctLinkVO other = (TransctLinkVO)o;
    if (!other.canEqual(this))
      return false; 
    Object this$linkId = getLinkId(), other$linkId = other.getLinkId();
    if ((this$linkId == null) ? (other$linkId != null) : !this$linkId.equals(other$linkId))
      return false; 
    if (!Arrays.equals(getXy(), other.getXy()))
      return false; 
    if (!Arrays.equals(getPos(), other.getPos()))
      return false; 
    Object this$begin = getBegin(), other$begin = other.getBegin();
    if ((this$begin == null) ? (other$begin != null) : !this$begin.equals(other$begin))
      return false; 
    Object this$end = getEnd(), other$end = other.getEnd();
    if ((this$end == null) ? (other$end != null) : !this$end.equals(other$end))
      return false; 
    if (getAlarm() != other.getAlarm())
      return false; 
    Object this$triggerId = getTriggerId(), other$triggerId = other.getTriggerId();
    if ((this$triggerId == null) ? (other$triggerId != null) : !this$triggerId.equals(other$triggerId))
      return false; 
    Object this$color = getColor(), other$color = other.getColor();
    return !((this$color == null) ? (other$color != null) : !this$color.equals(other$color));
  }
  
  protected boolean canEqual(Object other) {
    return other instanceof TransctLinkVO;
  }

  


  public TransctLinkVO(String linkId, int[] xy, int[] pos, String begin, String end, int alarm, long triggerId, String color) {
    this.linkId = linkId;
    this.xy = xy;
    this.pos = pos;
    this.begin = begin;
    this.end = end;
    this.alarm = alarm;
    this.triggerId = Long.valueOf(triggerId);
    this.color = color;
  }
  
  public TransctLinkVO() {}
}
